package com.xiaomo.gitee.datamanager.service.category;

import com.xiaomo.gitee.datamanager.entity.CClassInfo;
import com.xiaomo.gitee.datamanager.entity.ClassInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaomo.gitee.datamanager.entity.Images;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;


public interface ClassInfoService extends IService<ClassInfo> {

    List<CClassInfo> getChildClasses();

    List<ClassInfo> getParentClasses();

    ClassInfo getParentClassById(Long id);

    CClassInfo getChildClassById(Long id);

    List<CClassInfo> getChildClassesByPClass(String parentClassId);

    int insertParentClass(ClassInfo classInfo);

    int insertChildClass(CClassInfo cClassInfo);

    void deleteChildClass(Long category);

}
